#include<stdio.h>
int main()
{
	int x;
	scanf_s("%ld", &x);
	int n = 0;
	do 
	{
		n++;
		x /= 10;

	} while (x != 0);
	printf("%d", n);
	return 0;
}